package com.googlecode.maratische.google.gui;

import java.awt.Component;

import javax.swing.JSplitPane;

public class MainSplitPage extends JSplitPane {

    public MainSplitPage(int newOrientation,
                Component newLeftComponent,
                Component newRightComponent){
		super(newOrientation, newLeftComponent, newRightComponent);
	}
    
    private boolean expandWindow = false;
    private int dividerLocation = 0;
    
    public void doExpandWindow() {
    	if (expandWindow) {
			this.setDividerLocation(dividerLocation);
    	} else {
    		dividerLocation = this.getDividerLocation();
			this.setDividerLocation(0);
    	}
    	expandWindow = ! expandWindow;
    }
	
	private static final long serialVersionUID = 3040689819298980857L;

}
